//
//  MHVideoRecordViewModel.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/6/15.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHVideoRecordViewModel.h"
#import "MHVideoEditViewModel.h"

@implementation MHVideoRecordViewModel

-(void)initialize
{
    [super initialize];
    @weakify(self);
    self.pushToEditCommand  = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(NSString *videoPath) {
        @strongify(self);
        NSDictionary *dic =  self.musicPath ? @{MHViewModelUtilKey:videoPath,@"MHMusicPath":self.musicPath} : @{MHViewModelUtilKey:videoPath};
        MHVideoEditViewModel *viewModel = [[MHVideoEditViewModel alloc] initWithServices:self.services params:dic];
        [self.services presentViewModel:viewModel animated:YES completion:nil];
        return [RACSignal empty];
    }];
}
@end
